<?php ?>
<!DOCTYPE html>
<html lang="en" class="app">
    <head>
        <meta charset="utf-8" />
        <title>kol资源管理系统</title>
        <meta name="description" content="app, web app, responsive, admin dashboard, admin, flat, flat ui, ui kit, off screen nav" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
        <link rel="stylesheet" href="css/bootstrap.css" type="text/css" />
        <link rel="stylesheet" href="css/animate.css" type="text/css" />
        <link rel="stylesheet" href="css/font-awesome.min.css" type="text/css" />
        <link rel="stylesheet" href="css/icon.css" type="text/css" />
        <link rel="stylesheet" href="css/font.css" type="text/css" />
        <link rel="stylesheet" href="css/app.css" type="text/css" />
        <link rel="stylesheet" href="js/calendar/bootstrap_calendar.css" type="text/css" />
        <link rel="stylesheet" href="js/kindeditor/themes/default/default.css" />
        <script language="javascript" type="text/javascript" src="js/kindeditor/kindeditor.js"></script>
        <script language="javascript" type="text/javascript" src="js/kindeditor/lang/zh_CN.js"></script>
        <script type="text/javascript" src="js/swf/swfobject.js"></script>
        <script src="js/jquery.min.js"></script>
        <script src="js/datepicker/bootstrap-datepicker.js"></script>
        <!-- datepicker -->
        <script src="js/datepicker/bootstrap-datepicker.js"></script>
        <!-- slider -->
        <script src="js/slider/bootstrap-slider.js"></script>
        <!-- file input -->
        <script src="js/file-input/bootstrap-filestyle.min.js"></script>
        <!-- wysiwyg -->
        <script src="js/wysiwyg/jquery.hotkeys.js"></script>
        <script src="js/wysiwyg/bootstrap-wysiwyg.js"></script>
        <script src="js/wysiwyg/demo.js"></script>
        <link rel="stylesheet" href="css/style.css" type="text/css" />
        <!--[if lt IE 9]>
          <script src="js/ie/html5shiv.js"></script>
          <script src="js/ie/respond.min.js"></script>
          <script src="js/ie/excanvas.js"></script>
        <![endif]-->

        <?PHP if (!$_SESSION['user_type']) { ?>
            <script language="javascript">
                top.location = 'index.php';
            </script>
        <?PHP } ?>


        <style>
            @media (min-width: 768px){
                .aside-md {
                    width: 155px;
                }
                .aside-md {
                    width: 185px;
                }
            }
        </style>
    </head>
    <body class="">
        <section class="vbox">
            <header class="bg-white header header-md navbar navbar-fixed-top-xs box-shadow">
                <div class="navbar-header aside-md dk">
                    <a class="btn btn-link visible-xs" data-toggle="class:nav-off-screen" data-target="#nav">
                        <i class="fa fa-bars"></i>
                    </a>
                    <a href="#" class="navbar-brand">
                        <img src="images/logo.png" class="m-r-sm" alt="scale">
                        <span class="hidden-nav-xs" style="font-size:12px;">kol资源管理系统</span>
                    </a>
                    <a class="btn btn-link visible-xs" data-toggle="dropdown" data-target=".user">
                        <i class="fa fa-cog"></i>
                    </a>
                </div>


                <ul class="nav navbar-nav navbar-right m-n hidden-xs nav-user user">
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <span class="thumb-sm avatar pull-left">
                                <img src="images/a0.png" alt="...">
                            </span>
                            <?= $_SESSION['username'] ?> <b class="caret"></b>
                        </a>
                        <ul class="dropdown-menu animated fadeInRight">
                            <li>
                                <span class="arrow top hidden-nav-xs"></span>
                                <a href="index.php?c=user&m=set_psw">修改密码</a>
                            </li>
                            <li class="divider"></li>
                            <li>
                                <a href="index.php?c=user&m=logout" data-toggle="ajaxModal" >退出登录</a>
                            </li>
                        </ul>
                    </li>
                </ul>
            </header>
            <section>
                <section class="hbox stretch">
                    <!-- .aside -->
                    <aside class="bg-white aside-md hidden-print" id="nav">
                        <section class="vbox">
                            <section class="w-f scrollable">
                                <div class="slim-scroll" data-height="auto" data-disable-fade-out="true" data-distance="0" data-size="10px" data-railOpacity="0.2">
                                    <div class="clearfix wrapper dk nav-user hidden-xs">
                                        <div class="dropdown">
                                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                                <span class="thumb avatar pull-left m-r">
                                                    <img src="images/a0.png" class="dker" alt="...">
                                                    <!--<i class="on md b-black"></i>-->
                                                </span>
                                                <span class="hidden-nav-xs clear">
                                                    <span class="block m-t-xs">
                                                        <strong class="font-bold text-lt"><?= $_SESSION['username'] ?></strong>
                                                        <b class="caret"></b>
                                                    </span>
                                                    <span class="text-muted text-xs block">Art Director</span>
                                                </span>
                                            </a>
                                            <ul class="dropdown-menu animated fadeInRight m-t-xs">
                                                <li>
                                                    <span class="arrow top hidden-nav-xs"></span>
                                                    <a href="index.php?c=user&m=set_psw">修改密码</a>
                                                </li>
                                                <li class="divider"></li>
                                                <li>
                                                    <a href="index.php?c=user&m=logout" data-toggle="ajaxModal" >退出登录</a>
                                                </li>
                                            </ul>
                                        </div>
                                    </div>


                                    <!-- nav -->
                                    <nav class="nav-primary hidden-xs">
                                        <div class="text-muted text-sm hidden-nav-xs padder m-t-sm m-b-sm">Start</div>
                                        <ul class="nav nav-main" data-ride="collapse">
                                            <li <?php echo strstr($menu, "manage_") ? "class='active'" : ""; ?>>
                                                 <?php if ($_SESSION['user_type'] == "2") { ?>
                                                <a href="index.php?c=manage&m=wechat_list" class="auto">
                                                    <i class="i  i-grid2 icon"> </i>
                                                    <span class="font-bold">账号管理</span>
                                                </a> 
                                                 <?php }?>
                                                <ul class="nav dk" style="display:block">
                                                    <li <?php echo $menu == "manage_wechat" ? "class='active'" : ""; ?>>
                                                        <a href="index.php?c=manage&m=wechat_list" class="auto">
                                                            <i class="i i-dot"></i>
                                                            <span>视频账号</span>
                                                        </a>
                                                    </li>
                                                    <li <?php echo $menu == "manage_weibo" ? "class='active'" : ""; ?>>
                                                        <a href="index.php?c=manage&m=weibo_list" class="auto">
                                                            <i class="i i-dot"></i>
                                                            <span>漫画账号</span>
                                                        </a>
                                                    </li>
                                                    <!-- shuai180805S -->
                                                    <li <?php echo $menu == "manage_other" ? "class='active'" : ""; ?>>
                                                        <a href="index.php?c=manage&m=other_list" class="auto">
                                                            <i class="i i-dot"></i>
                                                            <span>其他账号</span>
                                                        </a>
                                                    </li>
                                                    <!-- shuai180805E -->
                                                    <?php if ($_SESSION['user_type'] == "2") { ?>
                                                    <li <?php echo $menu == "manage_type" ? "class='active'" : ""; ?>>
                                                        <a href="index.php?c=manage&m=type_list" class="auto">
                                                            <i class="i i-dot"></i>
                                                            <!-- shuai0805  -->
                                                            <!-- <span>标签列表</span> -->
                                                            <span>标签管理</span>
                                                        </a>
                                                    </li>
                                                    <?php }?>
                                                    

                                                </ul>
                                            </li>
                                            <?php if ($_SESSION['user_type'] == "2") { ?>
                                            <li <?php echo strstr($menu, "user_") ? "class='active'" : ""; ?>>
                                                <a href="index.php?c=user" class="auto">
                                                    <i class="fa fa-list-ul icon"> </i>
                                                    <span class="font-bold">权限管理</span>
                                                </a>
                                                <ul class="nav dk" style="display:block">
                                                        <li <?php echo $menu == "user_user" ? "class='active'" : ""; ?>>
                                                            <a href="index.php?c=user" class="auto">
                                                                <i class="i i-dot"></i>
                                                                <span>管理员列表</span>
                                                            </a>
                                                        </li>
                                                        <li <?php echo $menu == "user_log" ? "class='active'" : ""; ?>>
                                                            <a href="index.php?c=user&m=user_log" class="auto">
                                                                <i class="i i-dot"></i>
                                                                <span>管理员操作日志</span>
                                                            </a>
                                                        </li>
                                                </ul>
                                            </li>
                                            <?php } ?>
                                        </ul>
                                        <div class="line dk hidden-nav-xs"></div>

                                    </nav>
                                    <!-- / nav -->
                                </div>
                            </section>

                            <footer class="footer hidden-xs no-padder text-center-nav-xs">
                                <a href="index.php?c=user&m=logout" data-toggle="ajaxModal" class="btn btn-icon icon-muted btn-inactive pull-right m-l-xs m-r-xs hidden-nav-xs">
                                    <i class="i i-logout"></i>
                                </a>
                                <a href="#" data-toggle="class:nav-xs" class="btn btn-icon icon-muted btn-inactive m-l-xs m-r-xs">
                                    <i class="i i-circleleft text"></i>
                                    <!-- <i class="i i-circleright text-active"></i> -->
                                </a>
                            </footer>
                        </section>
                    </aside>
                    <!-- /.aside -->